package com.yyi.springcloud.entities;

import javax.persistence.Id;
import javax.persistence.Table;

@Table(name = "SENSORINFO")
public class SensorInfoModel {
	@Id
	private String primarykey;// 测试时间+台位

	@Id
	private Integer sensorno;// 传感器相对编号

	private String name;// 传感器名称

	private Integer selected;// 是否被选择

	private Integer visible;// 是否可见

	private Integer groupno;

	private Short maxselect;

	private Short minselect;

	private Short averageselect;

	private Short integralavselect;

	private Short diffselect;

	private Short ifborrowed;

	private Integer borrowdev;

	private Integer borrowno;

	private String englishname;

	private Integer colorno;// 颜色编号

	@Id
	private String labcode;// 实验室编码

	private String keyparameter;

	private Integer coordinateno;// 坐标系编号

	public Integer getCoordinateno() {
		return coordinateno;
	}

	public void setCoordinateno(Integer coordinateno) {
		this.coordinateno = coordinateno;
	}

	public String getPrimarykey() {
		return primarykey;
	}

	public void setPrimarykey(String primarykey) {
		this.primarykey = primarykey == null ? null : primarykey.trim();
	}

	public Integer getSensorno() {
		return sensorno;
	}

	public void setSensorno(Integer sensorno) {
		this.sensorno = sensorno;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name == null ? null : name.trim();
	}

	public Integer getSelected() {
		return selected;
	}

	public void setSelected(Integer selected) {
		this.selected = selected;
	}

	public Integer getVisible() {
		return visible;
	}

	public void setVisible(Integer visible) {
		this.visible = visible;
	}

	public Integer getGroupno() {
		return groupno;
	}

	public void setGroupno(Integer groupno) {
		this.groupno = groupno;
	}

	public Short getMaxselect() {
		return maxselect;
	}

	public void setMaxselect(Short maxselect) {
		this.maxselect = maxselect;
	}

	public Short getMinselect() {
		return minselect;
	}

	public void setMinselect(Short minselect) {
		this.minselect = minselect;
	}

	public Short getAverageselect() {
		return averageselect;
	}

	public void setAverageselect(Short averageselect) {
		this.averageselect = averageselect;
	}

	public Short getIntegralavselect() {
		return integralavselect;
	}

	public void setIntegralavselect(Short integralavselect) {
		this.integralavselect = integralavselect;
	}

	public Short getDiffselect() {
		return diffselect;
	}

	public void setDiffselect(Short diffselect) {
		this.diffselect = diffselect;
	}

	public Short getIfborrowed() {
		return ifborrowed;
	}

	public void setIfborrowed(Short ifborrowed) {
		this.ifborrowed = ifborrowed;
	}

	public Integer getBorrowdev() {
		return borrowdev;
	}

	public void setBorrowdev(Integer borrowdev) {
		this.borrowdev = borrowdev;
	}

	public Integer getBorrowno() {
		return borrowno;
	}

	public void setBorrowno(Integer borrowno) {
		this.borrowno = borrowno;
	}

	public String getEnglishname() {
		return englishname;
	}

	public void setEnglishname(String englishname) {
		this.englishname = englishname == null ? null : englishname.trim();
	}

	public Integer getColorno() {
		return colorno;
	}

	public void setColorno(Integer colorno) {
		this.colorno = colorno;
	}

	public String getLabcode() {
		return labcode;
	}

	public void setLabcode(String labcode) {
		this.labcode = labcode == null ? null : labcode.trim();
	}

	public String getKeyparameter() {
		return keyparameter;
	}

	public void setKeyparameter(String keyparameter) {
		this.keyparameter = keyparameter == null ? null : keyparameter.trim();
	}

	@Override
	public String toString() {
		return "SensorInfoModel [primarykey=" + primarykey + ", sensorno=" + sensorno + ", name=" + name + ", selected="
				+ selected + ", visible=" + visible + ", groupno=" + groupno + ", maxselect=" + maxselect
				+ ", minselect=" + minselect + ", averageselect=" + averageselect + ", integralavselect="
				+ integralavselect + ", diffselect=" + diffselect + ", ifborrowed=" + ifborrowed + ", borrowdev="
				+ borrowdev + ", borrowno=" + borrowno + ", englishname=" + englishname + ", colorno=" + colorno
				+ ", labcode=" + labcode + ", keyparameter=" + keyparameter + ", coordinateno=" + coordinateno + "]";
	}
}